extends "../cTDA_1_1/cTDA_1_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.5
	addCdSkill("qd1",9)
	addSkillTxt("无影抢劫：对全体敌方造成133物理%伤害，随后跳到敌方物防最低单位附近并对其造成200%物理伤害,获得5金币[cd:9秒]")

func _castCdSkill(id):
	._castCdSkill(id)

	if id == "qd1":
		cst("无影抢劫","000000",position)
		var t
		var n = position
		var chas =getAllChas(1)
		chas.sort_custom(self,"sortbydef")
		for i in chas:
			t = i.position
			ying(t,n)
			hurtChara(i,att.atk*1.33,Chara.HurtType.PHY,Chara.AtkType.SKILL)
			n = t
		jump(chas[0],self)
		self.aiCha = chas[0]
		hurtChara(chas[0],att.atk*2,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		if team == 1:
			sys.main.player.plusGold(5)

func sortbydef(a,b):
	return a.att.def < b.att.def